﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BusinessObject;
using BusinessLayer;
namespace RestHouseReservation
{
    public partial class Admin : System.Web.UI.Page
    {
        public string Name = "";
        public string Rank = "";
        public string Email = "";
        public string PaNum = "";
        public string Phone = "";
        public int length = 0;
        UsersLogic logic = new UsersLogic();
        public  List<UserDao> List = new List<UserDao>();
        protected void Page_Load(object sender, EventArgs e)
        {
            List = logic.PendingRequests();
            length = List.Count();
        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            string value = DropDownList1.SelectedValue;
            logic.ChangeStatus(value);
            Server.Transfer("AdminPage.aspx");
        }    
    }
}